export const demo_routes =
  {
    name: 'demo',
    path: "/demo",
    alias: "/demo",
    component: () => import('@views/layout/layout'),
    meta: {
      auth: {//不配置时不受权限控制(必须配合security插件使用)
        code: 'demo',
        model: 'page',
      },
      container: false, //redirect时使用
      keep: { //(必须配合keepView组件使用)
        alive: true, //是否需要缓存
        state: true, //activated时是否保留状态刷新
      },
      menu: { //不配置时不计入菜单(必须配合IterateMenu组件使用)
        title: 'Demo',
        icon: 'el-icon-setting', //菜单中图标
        hidden: false //菜单中是否显示
      },
      style: {//不配置时不设置容器样式(在layout组件中有使用)
        backgroundImage: ''
      }
    },
    //层级路由时需要使用组件 component: () => import('@/views/layout/keepView'),
    children: [
      {
        name: 'tinymce',
        path: "/tinymce",
        component: () => import('@/demo/richEditor'),
        meta: {

          keep: {
            alive: true,
            state: true,
          },
          menu: {
            title: 'tinymce',
            icon: 'el-icon-setting',
            hidden: false
          },
          style: {
            backgroundImage: ''
          },
        }
      },
      {
        name: 'codemirror',
        path: "/codemirror",
        component: () => import('@/demo/codeEditor'),
        meta: {

          keep: {
            alive: true,
            state: true,
          },
          menu: {
            title: 'codemirror',
            icon: 'el-icon-setting',
            hidden: false
          },
          style: {
            backgroundImage: ''
          },
        }
      },
    ]
  }
//export  default  demo_routes
